﻿(function () {
    var app = angular.module('KtotApp', ['ngRoute']);

    app.config(['$routeProvider', function ($routeProvider) {
        $routeProvider
            .when('/', {
                templateUrl: Utils.getPage('home'),
                controller: 'WorkController',
                controllerAs: 'workCtrl'
            })
            .when('/work', {
                templateUrl: Utils.getPage('work'),
                controller: 'WorkController',
                controllerAs: 'workCtrl'
            })
            .when('/config-projects', {
                templateUrl: Utils.getUrl('Project'),
                controller: 'TasksController',
                controllerAs: 'taskCtrl'
            });
            //.when('/edit-task/:taskId', {
            //    templateUrl: 'views/pages/edit-task.html',
            //    controller: 'EditTaskController',
            //    controllerAs: 'editTaskCtrl'
            //});
    }]);
})();